#include <stdio.h>   /*预处理*/

int main()    /*主函数*/
{
    int    a;
    char   b;    /*定义变量*/
    float   c;

    printf("Please input an integer:");   
    scanf("%d", &a);             /*输入整数并输出*/
    printf("integer:%d\n", a);
    
    printf("Please input a character:");
    getchar();         /*消耗缓冲区的字符*/
    scanf("%c", &b);    /*输入字符并输出*/
    printf("character:%c\n", b);
    

    printf("Please input a float number:");   
    scanf("%f", &c);       /*输入浮点数并输出*/
    printf("float:%f\n", c);

    return 0; 
}